package com.cenwangkeji.resident.ui.adapter;

import android.support.annotation.Nullable;

import com.cenwangkeji.resident.R;
import com.cenwangkeji.resident.model.bean.FamilyMemberBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * @松 on 2019/12/20 10:24
 *
 */
public class FamilyAdapter extends BaseQuickAdapter<FamilyMemberBean.DataBean, BaseViewHolder> {
    public FamilyAdapter(@Nullable List<FamilyMemberBean.DataBean> data) {
        super(R.layout.item_family, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FamilyMemberBean.DataBean item) {
                helper.setText(R.id.tv_date, "日期:  "+item.getCreateDate());
                helper.setText(R.id.tv_name, "姓名:  "+item.getXm());

    }
}
